home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
6623
/
6623.xpi
/
content
/
menu.xul
< prev
next >
Wrap
Extensible Markup Language
|
2009-11-28
|
2KB
|
65 lines
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://bp/skin/BetterPrivacyButton.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://bp/locale/bp.dtd">
<overlay id="BPOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onclose="alert(3);">
<script type="application/x-javascript" src="chrome://bp/content/bp.js"/>
<stringbundleset>
<stringbundle id="strBundle" src="chrome://bp/locale/bp.properties"/>
</stringbundleset>
<!--SeaMonkey-->
<menupopup id="taskPopup">
<menuitem label="BetterPrivacy" insertafter="sanitizeItem" oncommand="bpriv.showBetterPrivacy();" />
</menupopup>
<menupopup id="menu_ToolsPopup">
<menuitem label="BetterPrivacy" insertafter="sanitizeItem" oncommand="bpriv.showBetterPrivacy();" />
</menupopup>
<keyset>
<key id="key_bp" disabled="true" oncommand="bpriv.onKeyCode();" />
</keyset>
<script type="application/x-javascript">
window.addEventListener("load", function(event) {
event.currentTarget.removeEventListener("load", arguments.callee, true);
bpriv.firstload(event);
}, true);
//both methods below activate while browser.xul is still open and visible (MAC computer bugfix)
window.addEventListener("beforeunload", function(event) { //catches Firefox exit and restart
if(event.originalTarget.location == "chrome://browser/content/browser.xul"){
event.currentTarget.removeEventListener("beforeunload", arguments.callee, true);
bpriv.onexit(event);
}
}, true);
window.addEventListener("close", function(event) { //catches Firefox window close (x in upper right corner)
if(event.originalTarget.location == "chrome://browser/content/browser.xul"){
event.currentTarget.removeEventListener("close", arguments.callee, true);
bpriv.onexit(event);
}
}, true);
</script>
<toolbarpalette id="BrowserToolbarPalette">
<toolbarbutton id="BetterPrivacyButton" class="toolbarbutton-1"
label=" Better Privacy" tooltiptext=" Better Privacy"
oncommand="bpriv.showBetterPrivacy();"/>
</toolbarpalette>
</overlay>